How does the Ring with Indicator Card dynamically update indicator values?
Question Description
Something like (https://www.visactor.io/vchart/demo/pie-chart/pie-indicator) for a ring with indicator cards.
The value in this metrics card is now user-defined and does not support automatic changes, but it is possible to update this value after calculation. Can this number in the metrics card be changed according to the sector of the hover? How to do it?
Solution
The solution is different for different charting libraries. According to the demo you gave, you only need to set the interaction trigger type and configure the text field content.
- indicator.trigger is used to set the interaction trigger type. The available interaction types are hover, select, none, the default interaction trigger type is select, according to your requirement, you need to set indicator.trigger to hover.
- indicator.title.style.text is used to set the text content and supports callback. You can configure the required fields in the text according to the required data fields and format the presentation according to your needs.